<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>背景样式</title>
    <style>
        div {
            width: 800px;
            height: 600px;
            background-image:url('../1.HTML语言/img/1.jpg');
            /*background-repeat: no-repeat;*/
            background-repeat: repeat-y;
            /*background-position: right;*/
            background-color: blue;
            /*background-size: contain;*/
            /*background-position: 100px  200px;*/
            color: darkgreen;
        }
    </style>
</head>
<body>
<h1>背景样式</h1>
<!--<div style="width: 800px; height:600px; background-image: url('../1.HTML语言/img/1.jpg');
background-repeat: no-repeat; background-position: right;background-color: red"-->>
<div>
    <p> 背景样式</p>
</div>
</body>
</html>